import "./assets/less/main.less";

import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import api from "./api/api";

const app = createApp(App);

app.use(createPinia());
app.use(router);
//icon相关
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

//全局注入api
app.config.globalProperties.$api = api;


app.mount("#app");
